import http from "@/common/http";
import redisResponse from './mock/redis.json'
import cornResponse from './mock/cornList.json'

/**
 * 获取redis信息
 */
export async function apiGetRedisList(useMock?: boolean) {
  if (useMock) {
    return Promise.resolve(redisResponse)
  }
  return http.get(`/system/monitor/redis`)
}

/**
 * 获取定时任务
 */
export async function apiGetCornTaskList(useMock?: boolean) {
  if (useMock) {
    return Promise.resolve(cornResponse)
  }
  return http.get(`/system/monitor/redis`)
}
